package net.wangds.poi.excel2007.comp;

import net.wangds.poi.comp.AbstractExcelComp;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.io.InputStream;

@Component
public class Excel2007Comp extends AbstractExcelComp {
    @Override
    protected Workbook loadWorkbook(InputStream is) throws IOException {
        return new XSSFWorkbook(is);
    }
}
